﻿using System;
using Liu_Project.Utils;
using Liu_Project.Dal.Admin;

namespace Liu_Project.Web.Admin.Handler
{
    /// <summary>
    /// HomeHand 的摘要说明
    /// </summary>
    public class HomeHand : HandlerBaseAsync
    {
        readonly HomeDal dal = new HomeDal();

        public void GetUserMessageList()
        {
            _logOperation = "首页-数据统计";
            var data = dal.GetUserMessageList();

            _context.Response.Write(CommonFunction.SuccessJson(data));
        }

        public void GetUserLoginList()
        {
            _logOperation = "首页-近七天登陆次数";
            var data = dal.GetUserLoginList();

            _context.Response.Write(CommonFunction.SuccessJson(data));
        }

    }
}